package com.zerdoor.service.impl;

import com.zerdoor.dao.AddValueDao;
import com.zerdoor.service.AddValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 增值服务费接口
 * Created by xiaoji on 2015/1/29.
 */
@Service
public class AddValueServiceImpl implements AddValueService{

    @Autowired
    private AddValueDao addValueDao;

    public AddValueServiceImpl(){}
    /**
     * 增值服务列表
     *
     * @param map 增值服务查找条件
     * @return
     */
    @Override
    public List<Map<String, Object>> selectAllAddValue(Map<String, Object> map) {
        return addValueDao.selectAllAddValue(map);
    }

    /**
     * 添加增值服务
     *
     * @param map
     * @throws Exception
     */
    @Override
    public void addAddValue(Map<String, Object> map) throws Exception {
        addValueDao.addAddValue(map);
    }

    /**
     * 编辑增值服务
     *
     * @param map
     * @throws Exception
     */
    @Override
    public void updateAddValue(Map<String, Object> map) throws Exception {
        addValueDao.updateAddValue(map);
    }

    /**
     * 暂停增值服务
     *
     * @param map
     * @throws Exception
     */
    @Override
    public void updateAddValueStatus(Map<String, Object> map) throws Exception {
        addValueDao.updateAddValueStatus(map);
    }
}
